package com.googlecode.recycled.camel;

/**
 * Transforms business fact.
 */
public interface BusinessTransformation {

    /**
     * Transforms business fact.
     *
     * @param fact Cannot be null.
     * @return Transformed business fact. Can return different instance or null (indicating
     *         that input fact has been consumed and processing of the message is finished).
     */
    Object transform(Object fact);

}
